package com.spzx.manager;

import com.spzx.common.log.annotation.EnableLogAspect;
import com.spzx.manager.properties.MinioProperties;
import com.spzx.manager.properties.UserAuthProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * manager启动类
 * Project: spzx-parent
 * Package: com.spzx.manager
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2023/11/30 20:29
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.spzx"})
@EnableConfigurationProperties(value = {UserAuthProperties.class, MinioProperties.class})
@EnableScheduling
@EnableLogAspect        //添加自定义的注解，使spring引入LogAspect
public class ManagerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagerApplication.class, args);
    }
}
